class User {
  String? id;
  String? orgId;
  String? tenantId;
  String? account;
  String? avater;
  String? phone;
  String? name;
  String? nickName;
  String? post;

  User({
    this.id,
    this.orgId,
    this.tenantId,
    this.account,
    this.avater,
    this.phone,
    this.name,
    this.nickName,
    this.post,
  });

  factory User.fromJson(Map<String, dynamic> json) => User(
        id: json['id'] as String?,
        account: json['account'] as String?,
        avater: json['avater'] as String?,
        phone: json['phone'] as String?,
        name: json['name'] as String?,
        nickName: json['nickName'] as String?,
        post: json['post'] as String?,
      );

  Map<String, dynamic> toJson() => {
        'id': id,
        'account': account,
        'avater': avater,
        'phone': phone,
        'name': name,
        'nickName': nickName,
        'post': post,
      };
}
